﻿<s:SurfaceWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    xmlns:local="clr-namespace:CircularSurfaceListBox"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    x:Class="CircularSurfaceListBox.SurfaceWindow1"
    Title="CircularSurfaceListBox"
    Width="1024" Height="768"
    >
  <s:SurfaceWindow.Resources>
        <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="Resources/WindowBackground.jpg" />
    </s:SurfaceWindow.Resources>
    <Grid Background="{StaticResource WindowBackground}">
        <s:ScatterView x:Name="scatterView">
            <s:ScatterView.Resources>
                <Style TargetType="{x:Type s:SurfaceListBox}" BasedOn="{StaticResource GameCircularSurfaceListBoxStyle}">
                    <Setter Property="Width" Value="500" />
                    <Setter Property="Height" Value="500" />
                </Style>
                <Style TargetType="{x:Type s:ScatterViewItem}">
                    <Setter Property="Width" Value="200" />
                    <Setter Property="Height" Value="200" />
                </Style>
            </s:ScatterView.Resources>
            <s:ScatterViewItem Style="{StaticResource ScatterViewItemTransparentStyle}"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Bottom">
                <Viewbox Stretch="Uniform">
                    <s:SurfaceListBox>
                        <s:SurfaceListBox.Resources>
                            <Style TargetType="{x:Type Rectangle}">
                                <Setter Property="Height" Value="100" />
                                <Setter Property="Width" Value="100" />
                                <Setter Property="StrokeThickness" Value="0" />
                                <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
                                <Setter Property="RenderTransform">
                                    <Setter.Value>
                                        <TransformGroup>
                                            <RotateTransform Angle="90" />
                                        </TransformGroup>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </s:SurfaceListBox.Resources>
                        <Rectangle Fill="{StaticResource ChangeGame}" />
                        <Rectangle Fill="{StaticResource CollectCards}"  />
                        <Rectangle Fill="{StaticResource Stats}" />
                        <Rectangle Fill="{StaticResource ChangeDesign}" />
                        <Rectangle Fill="{StaticResource NewGame}" />
                    </s:SurfaceListBox>
                </Viewbox>
            </s:ScatterViewItem>

            <s:ScatterViewItem Style="{StaticResource ScatterViewItemTransparentStyle}">
                <Viewbox Stretch="Uniform">
                    <s:SurfaceListBox>
                        <s:SurfaceListBox.Resources>
                            <Style TargetType="{x:Type s:SurfaceButton}">
                                <Setter Property="Width" Value="120" />
                            </Style>
                        </s:SurfaceListBox.Resources>
                        <s:SurfaceButton Content="Albert Einstein"/>
                        <s:SurfaceButton Content="Aristotle"/>
                        <s:SurfaceButton Content="Sir Isaac Newton"/>
                        <s:SurfaceButton Content="Galileo Galilei"/>
                        <s:SurfaceButton Content="Charles Robert Darwin"/>
                        <s:SurfaceButton Content="Thomas Edison"/>
                        <s:SurfaceButton Content="Alessandro Giuseppe Antonio Anastasio Volta"/>
                        <s:SurfaceButton Content="Stephen Hawking"/>
                        <s:SurfaceButton Content="Louis Pasteur"/>
                        <s:SurfaceButton Content="Sir Jagadish Chandra Bose"/>
                        <s:SurfaceButton Content="Guglielmo Marchese Marconi"/>
                    </s:SurfaceListBox>
                </Viewbox>
            </s:ScatterViewItem>
        </s:ScatterView>
    </Grid>
</s:SurfaceWindow>